package cn.yueranzs.system.service;

import cn.yueranzs.response.ResultPage;
import cn.yueranzs.system.pojo.Department;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yueranzs
 * @since 2021-11-09
 */
public interface DepartmentService extends IService<Department> {

    ResultPage findDeptAndCount(Department department, Page page);


    /**
     * 添加部门
     * @param department
     */
    void saveDepartment(Department department);

    /**
     * 修改部门
     * @param department
     */
    void updateDepartment(Department department);

    /**
     * 导出部门
     * @param response
     * @param department
     */
    void excelDeptList(HttpServletResponse response, Department department);

    /**
     * 删除部门
     * @param id
     */
    void deleteDepartment(Long id);
}
